Part Number Hot Search : 
IDT72 IDT72 MD1332F A6809 AP300806 BCW73LT1 IRFR9024 3KE13A
Product Description
Full Text Search
 

To Download UM2032 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  november 2016 docid029078 rev 2 1/48 1 UM2032 user manual discovery kit with stm32f412zg mcu introduction the 32f412gdiscovery discovery kit is a complete demonstration and development platform for stmicroelectronics arm ? cortex ? -m4 core-based stm32f412zgt6 microcontroller. this microcontroller features four i 2 c buses, four usart ports, five spi ports with two multip lexed full-duplex i 2 s buses, sdio interface, usb otg full-speed 2.0 port, two can buses, fmc paralle l interface, two digital filters for sigma-delta modulators, pdm interface for two digital microphones, one 12-bit adc, dual quad-spi interface, jtag and swd debugging support. this discovery kit offers everything required for users to get started quickly and develop applications easily. a full range of hardware features on the board helps users to evaluate on-board peripherals such as: usb otg fs, microsd ? card, full-duplex i 2 s with an audio codec and stereo jack for headset including analog microphone, dfsdm with a pair of st-mems digital microphones on board, quad-spi flash memory device, 1.54" tft lcd using fmc interface with capacitive touch panel. the arduino ? uno v3 compatible connectors expand the functionality with a wide choice of specialized shields. the extension connectors allow easy connection of a daughterboard for specific customer applicatio ns. the integrated st-link/v2-1 provides an embedded in-circuit debugger and programmer for the stm32. 1. pictures are not contractual. figure 1. 32f412gdiscovery (top view) figure 2. 32f412gdiscovery (bottom view) www.st.com
contents UM2032 2/48 docid029078 rev 2 contents 1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2 demonstration software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3 product marking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 4 ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 5 technology partner . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 6 hardware layout and configurat ion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 6.1 32f412gdiscovery discovery kit mechanical drawing . . . . . . . . . . . . .11 6.2 embedded st-link/v2-1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11 6.2.1 drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 6.2.2 st-link/v2-1 firmware upgrade . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 6.3 power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 6.3.1 power supply sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 6.3.2 stm32 power supply options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 6.3.3 modification of stm32 voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 6.3.4 supplying the 32f412gdiscovery through the st-link/v2-1 usb port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 6.3.5 programming/debugging when the power supply is not from st-link/v2-1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 6.3.6 measurement of current idd drawn by the microcontroller . . . . . . . . . . 15 6.4 clock source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 6.4.1 hse clock source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 6.4.2 lse clock source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 6.5 reserved use of solder bridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 6.6 reset source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 6.7 boot options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 6.8 audio codec . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 6.8.1 stereo headset and headphone jack . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 6.8.2 loudspeaker output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 6.9 digital microphones . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
docid029078 rev 2 3/48 UM2032 contents 4 6.10 usb otg fs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 6.10.1 32f412gdiscovery is usb device . . . . . . . . . . . . . . . . . . . . . . . . . . 21 6.10.2 32f412gdiscovery is usb host . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 6.11 microsd card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 6.12 i 2 c extension connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 6.13 quad-spi nor flash memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 6.14 virtual com port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 6.15 arduino uno v3 connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 6.16 extension connectors p1 and p2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 6.17 lcd display, backlight and touch panel . . . . . . . . . . . . . . . . . . . . . . . . . . 26 6.17.1 lcd display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 6.17.2 lcd signal access (cn7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 6.17.3 backlight . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 6.17.4 touch panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 6.18 joystick and leds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 7 connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 7.1 i 2 c extension connector cn10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 7.2 usb otg fs micro-ab connector cn3 . . . . . . . . . . . . . . . . . . . . . . . . . . 30 7.3 microsd connector cn13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 7.4 st-link/v2-1 usb micro-b connector cn6 . . . . . . . . . . . . . . . . . . . . . . 31 appendix a schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 appendix b federal communi cations commission (fcc) and industry canada (ic) compliance st atements. . . . . . . . . . . . . 45 b.1 fcc compliance statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 b.1.1 part 15.19 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 b.1.2 part 15.105 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 b.1.3 part 15.21 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 b.2 ic compliance statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 b.2.1 compliance statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 b.2.2 dclaration de conformit. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 appendix c cispr32 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 c.1 warning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
contents UM2032 4/48 docid029078 rev 2 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
docid029078 rev 2 5/48 UM2032 list of tables 5 list of tables table 1. ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 table 2. power-supply-related jumper settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 table 3. boot options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 table 4. boot-related solder bridge and resistor settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 table 5. arduino uno v3 compatible connec tors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 table 6. pin assignment for the extension connector p1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 table 7. pin assignment for the extension connector p2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 table 8. pin assignment for connector cn15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 table 9. pin assignment for connector cn7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 7 table 10. port assignment to the led indica tors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 9 table 11. i 2 c extension connector pinout cn10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 table 12. usb otg fs micro-ab connector cn3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 table 13. microsd connector cn13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 table 14. usb micro-b connector cn6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 table 15. document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
list of figures UM2032 6/48 docid029078 rev 2 list of figures figure 1. 32f412gdiscovery (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 figure 2. 32f412gdiscovery (bottom view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 figure 3. hardware block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 figure 4. 32f412gdiscovery top layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 figure 5. 32f412gdiscovery bottom layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 figure 6. 32f412gdiscovery mechanical drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 figure 7. usb composite device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 figure 8. r90 and r92 resistors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 figure 9. i 2 c extension connector cn10 (front view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 figure 10. usb otg fs micro-ab connector cn3 (front view). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 figure 11. microsd connector cn13 (front view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1 figure 12. usb micro-b connector cn6 (front view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 figure 13. 32f412gdiscovery discovery kit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 figure 14. 32f412gdiscovery mcu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 figure 15. 32f412gdiscovery power . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 figure 16. 32f412gdiscovery lcd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 7 figure 17. 32f412gdiscovery quad-spi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 figure 18. 32f412gdiscovery audio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 9 figure 19. 32f412gdiscovery peripherals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 figure 20. 32f412gdiscovery usb otg fs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 figure 21. 32f412gdiscovery extension connectors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 figure 22. 32f412gdiscovery arduino uno v3 connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 figure 23. 32f412gdiscovery st-link/v2-1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
docid029078 rev 2 7/48 UM2032 features 47 1 features ? stm32f412zgt6 microcontroller featuring 1 mbyte of flash memory and 256 kbytes of ram in lqfp144 package ? on-board st-link/v2-1 swd debugger, supporting usb re-enu meration capability: ? virtual com port ? mass storage ? debug port ? 1.54-inch, 240x240-pixel tft color lcd with parallel interface ? i 2 s audio codec, with a stereo headset jack, including analog microphone input and a loudspeaker output ? stereo digital st-mems microphones. ? microsd ? card connector ? i 2 c extension connector ? 128-mbit quad-spi nor flash memory ? reset button and joystick ? four-color user leds ? usb otg fs with micro-ab connector ? four options for power-supply source: ? st-link/v2-1 usb connector ? user usb fs connector ? vin from arduino ? uno v3 connector ? +5 v from arduino ? uno v3 connector ? two supply voltage options for stm32: 2.0 v and 3.3 v ? compatible arduino ? uno v3 connectors ? extension connectors for direct access to various features of the stm32f412zgt6 ? comprehensive free software including a variety of examples, part of the stm32cube package 2 demonstration software demonstration software is preloaded in the stm32f412zgt6 flash memory. the latest version of the demonstration source code and the associated documentation can be downloaded from the www.st.com/stm32f4-discovery webpage.
product marking UM2032 8/48 docid029078 rev 2 3 product marking evaluation tools marked as "es" or "e" are not yet qualified and therefore they are not ready to be used as reference design or in production. any consequences deriving from such usage will not be at st charge. in no event, st will be liable for any customer usage of these engineering sample tools as reference design or in production. "e" or "es" marking examples of location: ? on the targeted stm32 that is soldered on the board (for illu stration of stm32 marking, refer to the section "package informati on" of the stm32 datasheet available at www.st.com ). ? next to the evaluation tool ordering part number, that is stuck or silk-screen printed on the board. 4 ordering information to order the 32f412gdiscovery discovery kit refer to table 1 : 5 technology partner micron: ? 128-mbit quad-spi nor flash memory device, part number n25q128a table 1. ordering information order code target stm32 stm32f412g-disco stm32f412zgt6
docid029078 rev 2 9/48 UM2032 hardware layout and configuration 47 6 hardware layout and configuration the 32f412gdiscovery discovery kit is designed around the stm32f412zgt6 (144-pin tqfp package). the hardware block diagram showed in figure 3 , illustrates the stm32f412zgt6 connections with the peripherals. figure 4 and figure 5 show the location of the main components on the discovery kit. figure 3. hardware block diagram 06y9 670)=*7 74)3sdfndjh $xglr&2'(& 57& 93rzhu 6xsso\ .+]&u\vwdo [/('v 67/,1.9 ,& ,6 ,  &h[whqvlrq frqqhfwru /&' plfur6'fdug frqqhfwru -r\vwlfn *3,2 6',2 463, 0e\whv 4xdg63, )odvkphpru\ 27* )6 86%frqqhfwru 86$57 )60& *3,2v 6:' 6whuhrkhdgvhwrxwsxw 6whuhrgljlwdo plfurskrqhv ')6'0 /&'7rxfk sdqho $ugxlqr frqqhfwruv ([whqvlrq frqqhfwruv ,& 93rzhu 6xsso\ 0rqrskrqlforxgvshdnhurxwsxw $qdorjplfurskrqhlqsxw *3,2v *3,2v
hardware layout and configuration UM2032 10/48 docid029078 rev 2 figure 4. 32f412gdiscovery top layout figure 5. 32f412gdiscovery bottom layout 06y9 88 'ljlwdo plfurskrqhv 8 670)=*7 3 h[whqvlrq frqqhfwru &1 ,  & h[whqvlrq frqqhfwru -3 9''b86% vrxufh vhohfwlrq -3 9''b0&8 yrowdjh vhohfwlrq -3 ,'' mxpshu &1 x6' frqqhfwru &1 $xglrmdfn &1 86%27*)6 0lfur$% frqqhfwru % 5hvhw exwwrq == /&' 3 h[whqvlrq frqqhfwru % mr\vwlfn &1&1 $ugxlqr frqqhfwruv -3 6xsso\ vrxufh vhohfwlrq &1 6:' frqqhfwru &1 67/,1.9 0lfur%86% frqqhfwru &1 &1 $ugxlqr frqqhfwruv /' 9srzhu /(' /'/'/' /' 8vhu/('v /' 86% )$8/7 /(' /' $ugxlqr /(' /' 67/,1.srzhu vzlwfk)$8/7 /' 9%86/(' 06y9 &1 x6'frqqhfwru &1 &dsdflwlyh 7rxfk3dqho frqqhfwru 55 7rdgmxvwrxwsxwyrowdjh riuhjxodwru8
docid029078 rev 2 11/48 UM2032 hardware layout and configuration 47 6.1 32f412gdiscovery discovery kit mechanical drawing figure 6. 32f412gdiscovery mechanical drawing 6.2 embedded st-link/v2-1 st-link/v2-1 programming and debugging tool is integrated into the 32f412gdiscovery discovery kit. compared to st-link/v2 stand-alone tool available from stmicroelectronics, st-l ink/v2-1 offers new features and drops some others. new features: ? usb software re-enumeration ? virtual com port interface on usb ? mass storage interface on usb ? usb power management request for more than 100 ma power on usb feature dropped: ? swim interface for all general information concerning debugging and programming features common between v2 and v2-1 versions, refer to st-link/v2 in-circuit debugger/programmer for stm8 and stm32 user manual (um1075) at the www.st.com website. 2 8 1 6 5 4 8 5 4 13 12 48 1 8 24 37 1 1 2 5 6 10 7 25 36 25 2 1 1 109 108 73 6 2 1 72 144 37 1 8 8 1 8 5 36 4 5 3 1 d a 50 49 50 49 29 28 22 2 23 44 2 26 1 50.8 172 5.08 22.86 65.68 59.35 4.06 23.79 67 48.26
hardware layout and configuration UM2032 12/48 docid029078 rev 2 6.2.1 drivers before connecting stm32f412zgt6 to a windows ? xp, 7 or 8 pc via usb, a driver for st-link/v2-1 must be installed. it can be downloaded from the www.st.com website. in case the 32f412gdiscovery di scovery kit is connected to the pc before the driver is installed, some 32f412gdiscovery interfaces may be declared as "unknown" in the pc device manager. to recover from this situati on the user must install the driver files, and update the driver of the connected device from the device manager (see figure 7 ). note: prefer using the "usb composite device" handle for a full recovery. figure 7. usb composite device 6.2.2 st-link/v2-1 firmware upgrade st-link/v2-1 employs a dedicated mcu with flash memory. its firmware determines st-link/v2-1 functionality and performance. the firmware may evolve during the life span of the 32f412gdiscovery to include new functionalities, fix bugs or support new target microcontroller families. it is th erefore recommended to keep the st-link/v2-1 firmware up to date. the latest version is available from the www.st.com website. 6.3 power supply 6.3.1 power supply sources the 32f412gdiscovery discovery kit is designed to be powered by the following sources: ? 5 v dc from the st-link/v2 -1 usb connector cn6 with 500 ma current limitation. power mechanism of supplying the discovery kit by the st-link/v2-1 is explained in section 6.3.4: supplying the 32f412gdi scovery through the st-link/v2-1 usb port . a jumper should be placed in location st lk of jp3, connecting pins 3 and 4. the green led ld6 is lighted on to confirm the presence of +5 v voltage. ? 5 v dc from the user usb fs connector cn3. a jumper should be placed in location usb of jp3, connecting pins 5 and 6. the green led ld6 is lighted on to confirm the presence of +5 v voltage. ? 6 v to 9 v dc from vin pin of arduino uno v3 compatible connector cn2. the voltage is limited to 9 v to keep the temperature of the regulator u3 within his thermal safe
docid029078 rev 2 13/48 UM2032 hardware layout and configuration 47 area. a jumper should be placed in location e5v of jumper jp3, connecting pin 1 to pin 2 of jp3. the green led ld6 is lighted on to confirm the presence of +5 v voltage. ? 5 v dc from +5 v pin of arduino uno v3 connector (cn2 pin 5) with limitations. the jumpers on jp3 and cn5 have to be removed, sb21 (nrst) and sb28 (swo) have to be opened. in such configuration the st-link/v2-1 mcu is not powered, as consequence the 8 mhz of the st-link/v2-1 cannot be used as external input clock for the stm32. for details on jp3 jumper setting refer to table 2: power-supply-related jumper settings . 6.3.2 stm32 power supply options the 32f412gdiscovery offers the possibility to supply the stm32 under 2.0 v or 3.3 v. a jumper has to be placed in location 2.0 v of jp5 to supply the stm32 under 2.0 v, then pins 2 and 3 are connected. similarly the jumper has to be placed in 3.3 v to supply the stm32 with 3.3 v, then pins 1 and 2 of jp5 are connected. for details on jp5 jumper setting refer to table 2: power-supply-related jumper settings . 6.3.3 modification of stm32 voltage regulator u16 ld1117str is dedicated to the 2.0 v supply. the output voltage of u16 is by default 2.0 v but it is adjustable depending on the resistors r90 and r92 which are by default 120 and 68 ohms respectively. the output voltage is calculated as following: with vref = 1.25 v. if necessary, resistors r90 and r92 can be changed to modify the stm32 supply voltage. r90 and r92 are easily located bottom si de of the discovery kit near u16 (see figure 5 and figure 8 ). vout vref 1 r92 () r90 () + () =
hardware layout and configuration UM2032 14/48 docid029078 rev 2 figure 8. r90 and r92 resistors 6.3.4 supplying the 32f 412gdiscovery through the st-link/v2-1 usb port to power the 32f412gdiscovery through the st-link/v2-1, the usb host (a pc) gets connected with the 32f412gdiscovery micro-b usb receptacle cn6, via a usb cable. this event starts the usb enumeration procedure. in its initial phase, the current supply capability of the usb port loca ted on the host, is limited to 100 ma. it is enough because only the st-link/v2-1 part of the 32f412gdiscovery discovery kit draws power at that time. if the solder bridge sb18 is open (default configuration), the u8 st890 power switch is set to off position, and only the st-link/v2 -1 is powered. in the next phase of the enumeration proc edure, the host pc informs the st-lin k/v2-1 facility of its capability to supply up to 500 ma of current. if the answer is positive, the st-link/v2-1 sets the u8 st890 switch to on position to supply powe r to the remainder of the 32f412gdiscovery discovery kit. if the pc usb port is not capable of supplying up to 500 ma of current, another power source should be used like vin pin of connector cn2. should a short-circuit occur on the discovery kit, the st890 power switch protects the usb port of the host against current demand exceeding 600 ma. in such an event, the red led fault ld10 lights on. the 32f412gdiscovery discovery kit can also be supplied from a usb power source not supporting enumeration, such as a usb charger. in this particular case, sb18 solder bridge must be closed. st-link/v2-1 turns the st890 power switch on regardless of the enumeration procedure result and passes the power unconditionally to the discovery kit. the green led ld6 turns on whenever the discovery kit is powered.
docid029078 rev 2 15/48 UM2032 hardware layout and configuration 47 6.3.5 programming/debugging when the power supply is not from st-link/v2-1 before connecting the usb cable from the st-link/v2-1 usb connector cn6 to the pc, it is mandatory to power the discovery kit using the user usb fs connector cn3 or the vin pin of the arduino uno v3 connector cn2. proceeding this way, ensures that the enumeration succeeds thanks to the external power source. the following power sequence procedure must be respected: 1. put a jumper in jp3 at location usb to use power from the user usb cn3 or at location e5v to use power from vin of arduino uno v3 connector cn2. 2. connect the corresponding external power source. 3. check that the green led ld6 is turned on 4. connect the pc to the st-link/v2-1 usb connector cn6 if this order is not respecte d, the discovery kit may be powered by vbus first from st- link/v2-1, and the following risks may be encountered: 1. if more than 500 ma current is needed by the discovery kit, the pc may be damaged or current can be limited by pc. as a consequence the discovery kit is not powered correctly. 2. 500 ma is requested at the enumeration. if th e pc cannot provide such current there is a risk that the request is rejected and the enumeration does not succeed. 6.3.6 measurement of current id d drawn by the microcontroller the jumper jp7 should be closed by default to supply the stm32f412zgt6. to measure the current idd drawn by the microcontroller stm32f412zgt6 only, remove the jumper jp7 and replace it by a multimeter (see table 2 ). table 2. power-supply-related jumper settings jumper description jp3 default setting 32f412gdiscovery is supplied through the micro-b st-link/v2-1 connector cn6. jumper in stlk place. 32f412gdiscovery is supplied through cn3 micro-ab usb fs connector. jumper in usb place. usb stlk e5v 1 usb stlk e5v 1
hardware layout and configuration UM2032 16/48 docid029078 rev 2 jp3 32f412gdiscovery is supplied through the vin pin of the arduino uno v3 compatible connector cn2. jumper in e5v place. 32f412gdiscovery is supplied by +5 v pin of arduino uno v3 compatible connector cn2 (pin 5) or by pins 3 or 4 of the extension connector p2. no jumper in jp3. jp5 default setting stm32f412zgt6 is supplied with a +3.3 v voltage (vdd_mcu). stm32f412zgt6 stm32 is supplied with a +2.0 v voltage (vdd_mcu). jp6 default setting vdd_usb power pin of stm32f412zgt6 is supplied with same voltage vdd_mcu as remainder supply pins of stm32. table 2. power-supply-related jumper settings (continued) jumper description usb stlk e5v 1 usb stlk e5v 1 +3v3 1 +2v +2v +3v3 1 vdd +3v3 1
docid029078 rev 2 17/48 UM2032 hardware layout and configuration 47 jp6 vdd_usb power pin of stm32f412zgt6 is supplied with a fix voltage of +3v3 independently of the remainder of supply pins of stm32. jp7 default setting jp7 idd is closed by default to supply the stm32f412zgt6 and when removed, it offers the possibility to insert an ammeter to measure the current drawn by the stm32 only. table 2. power-supply-related jumper settings (continued) jumper description vdd +3v3 1 idd
hardware layout and configuration UM2032 18/48 docid029078 rev 2 6.4 clock source 6.4.1 hse clock source by default the 8 mhz clock source is provid ed to the stm32f412zgt6 by the mco output of the st-link/v2-1 mcu u6. in that case the solder bridge sb20 is closed, resistors r45 and r46 are not soldered, solder bridge sb22 is open. the pins ph0 and ph1 are not available for the extension connector p2. alternatively, the discovery ki t offers the possibility to use a crystal to provide the 8 mhz hse clock source of the stm32f412zgt6 u7. in that case, ph0 and ph1 are used as osc_in and osc_out respectively. the solder bridges sb20, sb22, sb16 must be opened, 0 ohm resistors should be soldered to r45 and r46 and a crystal must be soldered in place x2. regarding component selection of x2, capacitors c19 and c21 (8.2 pf) are optimized for a crystal ndk nx3225gd 8 mhz exs00a-cg04874 and they are not fitted. the pins ph0 and ph1 are not available for the extension connector p2. 6.4.2 lse clock source by default, the 32.768 khz crystal x3 is co nnected to pins pc14-osc32_in and pc15- osc32_out of stm32f412zgt6 for the rtc clock. solder bridges sb25 and sb23 must be open. if lse clock is not used, it is possible to use pc14-osc32_in and pc15-osc32_out of stm32f412zgt6 and to access by the extension connector p2. in that case, solder bridges sb25 and sb23 must be closed and resistors r54, r56 removed. 6.5 reserved use of solder bridges the following solder bridges must not be changed otherwise the microcontroller stm32f412zgt6 u7 or other parts of the discovery kit may be damaged: ? solder bridges must be left closed: sb34, sb26 ? solder bridges must be left open: sb27, sb35 6.6 reset source the reset signal of 32f412gdiscovery discover y kit is low active and the reset sources include: ? reset button b1 , providing solder bridge sb1 is closed (default setting) ? embedded st-link/v2-1 , providing solder bridge sb21 is closed (default setting) ? arduino uno v3 compatible connector cn2 pin 3 ? extension connector p1 pin 6
docid029078 rev 2 19/48 UM2032 hardware layout and configuration 47 6.7 boot options after reset, the stm32f412zgt6 boots from the following embedded memory locations depending on bits boot0 and boot1 (see table 3 ): ? user flash memory (non-protected) ? system flash memory (protected) for in circuit programming ? ram for debugging boot0 is set by the input pin boot0 of the st m32f412zgt6. its level is set by default to 0 by closing the solder bridge sb31 and keeping r69 unfitted. boot1 is shared with the gpio pb2 used as qspi_clk and is sampled by the stm32f412zgt6 only at reset phase. at start-up, boot1 level depends on the resistors r104 and r100. by default r100 and r104 are not fitted on the discovery kit to avoid any influence on the qspi_clk signal using same pin as boot1. the application note ? stm32 microcontroller system memory boot mode? application note (an2606) details the bootloader mechanism and configurations. boot-related solder bridge and resistor settings are reported in table 4 : table 3. boot options boot0 boot1 boot memory 0 x user flash 1 0 system flash 11 ram table 4. boot-related solder bridge and resistor settings resistors, solder bridge description sb31 closed r69 not fitted boot0=0 r100 and r104 not fitted boot1=x default setting microcontroller stm32f412zgt6 boots from user flash. sb31 open r69 fitted (any value from 0 to 10k) boot0=1 r100 not fitted r104 fitted (1) boot1=0 1. to keep quad-spi functionality after boot-up phase, the user should select a resistor value of r100 or r104 insuring a weak pull-down or weak pull-up respectively. microcontroller st m32f412zgt6 boots from system flash. r104 is a pull-down resistor on pb2 shared between boot1 and qspi_clk. r100 fitted (1) r104 not fitted boot1=1 microcontroller stm 32f412zgt6 from ram. r100 is a pull-up resistor on pb2 shared between boot1 and qspi_clk.
hardware layout and configuration UM2032 20/48 docid029078 rev 2 6.8 audio codec a cirrus/wolfson codec wm8994 u15 connected to the i2s3 interface of the microcontroller stm32f412zgt6 offers possibilit y to connect a stereo headph one or headset with a mono- analog microphone. a loudspeaker can be connected to the extension connector. the digital audio output from the microcontroller is handled by the port of the microcontroller pb5 called codec_i2s3_sd while the other direction is handled by port pb4 called codec_i2s3ext_sd. the i 2 c-bus address of wm8994 is 0b0011010. 6.8.1 stereo headset and headphone jack a stereo headphone or a stereo headset with analog microphone can be plugged into the 3.5 mm standard jack socket cn9. the stereo digital audio streamed from pin pb5 of the microcontroller stm32f412zgt6 is transformed in a stereo analog output by the codec wm8994 and is delivered to the headphone or headset through the pins 6 and 4 of the jack socket cn9. if a headset is plugged into cn9, the bias of the microphone is driven by the output micbias1 of the codec and the analog audio enters into the codec by the pin in1ln. the corresponding digital audio output from th e codec is connected to the microcontroller stm32f412zgt6 by the port pb4. 6.8.2 loudspeaker output the 32f412gdiscovery discovery kit can deliver a monophonic audio to a loudspeaker connected to pins 36 and 38 of the extensio n connector p2. it is recommended to use the wm8994 codec loudspeaker outputs spkout rn and spkoutrp in linear mode called "class ab". this mode is compatible with 4- ohm to 8-ohm impedance loudspeakers. use of the switching mode called "class d" requires to use an appropriate filter to maximize rejection of unwanted frequencie s and efficiency. to select the mode "class ab" of the codec wm8994, set to 1 the bit 8 of the register 0x23. 6.9 digital microphones two st-mems mp34dt01tr digital microphones u4 and u5 are available on the 32f412gdiscovery discovery kit. the two micr ophones are located at a distance of 21 mm each other. the microphones are connected to the dfsdm of the stm32 by the port pc2 generating the clock and by the port pb1 collecting the pdm interleaved data. 6.10 usb otg fs a usb otg full-speed communicat ion is available at usb micro-ab receptacle connector cn3. limitations: the usb-related operating supply voltage of stm32l412zgt6 (vdd_usb line) must be within the range from 3.0 v to 3.6 v. therefore, in case the stm32f412zgt6 is supplied with 2 v by jp5 set in +2 v posit ion, the usb of the stm32 works only if the vdd_usb power pin is supplied independently by +3.3v. this is done by closing pins 2 and 3 of the jumper jp6 (refer to table 2: power-supply-related jumper settings ).
docid029078 rev 2 21/48 UM2032 hardware layout and configuration 47 6.10.1 32f412gdiscovery is usb device when the 32f412gdiscovery is usb device, th e discovery kit is powered by the 5 v of the cn3 usb otg fs micro-ab connector. in th is case a jumper must be put in usb location of jumper jp3 and the green leds ld7 vbus and ld6 pwr light on to confirm the 5 v presence. 6.10.2 32f412gdiscovery is usb host when the 32f412gdiscovery is usb host it supplies the 5v for the usb peripheral using one of the following sources: ? st-link/v2-1 usb micro-b co nnector cn6, putting a jumper in stlk location of jp3 ? an external +5 v source con nected to pins 3 or 4 of th e extension connector p2, with no jumper in jp3. ? an external +5v source connected to 5 v pin of arduino uno v3 connector cn2, with no jumper in jp3. ? an external source between +7 to +11 v connected to vin pin of arduino uno v3 connector cn2, putting a jumper in e5v location of jp3. the green led ld6 is lighted to confirm the presence of the +5 v source. the power switch stmps2141str is controlled by the port pg8 of stm32 to deliver the 5 v power to the usb device connected to the usb connector cn3. it is recommended to use pg8 in open drain mode. when pg8 is closed to ground, the power switch is closed, and the green led ld7 confirms the 5 v to the usb device. the red led ld8 fault is lit when an overcurrent occurs. for more details refer to section 6.3: power supply . 6.11 microsd card microsd cards with a capacity of 4 gbytes or more can be inserted in the receptacle cn13. the four bits of the sdio interface includi ng clk and cmd signals of the stm32f412zgt6 are used to communicate with the microsd card . the card detection is read by the gpio pd3: when a microsd card is inserted, th e logic level is 0, otherwise it is 1. note that port pc9 used as usd_d1 can be routed also to the pin 46 of the extension connector p2, by closing the solder bridge sb 43 for other usage like the alternate function mco2. therefore the use of the microsd card is exclusive with mco2 output. limitations: the microsd card is not working when the stm32 is supplied with 2v. 6.12 i 2 c extension connector the i2c2 bus is available on the i 2 c extension connector cn10. i2c2-sda (port pb9) is available on pin 1 and i2c2-scl is available on pin 3. pins 5 and 7 of cn10 are the vdd and gnd supplying the microcontroller. i2 c2 voltage levels follows also vdd.
hardware layout and configuration UM2032 22/48 docid029078 rev 2 6.13 quad-spi nor flash memory a 128-mbit quad-spi nor flash memory (n25q128a13ef840e from micron) is connected to the quad-spi interface of the stm32f412zgt6 microcontroller. note that qspi_clk (port pb2) is sampled by the stm32f412zgt6 at start-up as the boot1 bit. if necessary, the user can set th e boot1 state by fitting one of the resistors r100 or r104. by default r100 and r104 are not fitted. refer to section 6.7: boot options for more details. limitations: the quad-spi memory is not working when the stm32 is supplied with 2 v. 6.14 virtual com port the serial interface usart2 is directly ava ilable through a usb virtual com port of the st-link/v2-1. the u sb connector is cn6. 6.15 arduino uno v3 connectors cn1, cn2, cn11 and cn12 are female conn ectors compatible with arduino uno v3 standard. most shields designed for arduino uno v3 can fit to the 32f412gdiscovery discovery kit. caution: the ios of stm32 microcontroller are 3.3 v compatible instead of 5 v for arduino uno v3. table 5. arduino uno v3 compatible connectors left connectors right connectors cn no. pin no. pin name stm32 pin function function stm32 pin pin name pin no. cn no. - - - - - i2c2_scl pb10 d15 10 cn12 digital -i2c2_sdapb9d149 --- - - avdd-avdd8 - - - - - ground - gnd 7 cn2 power 1- - not connected spi1_sck pa5 d13 6 2 ioref - 3.3 v spi1_miso pa6 d12 5 3 nrst nrst reset tim3_ch2, spi1_mosi pa7 d11 4
docid029078 rev 2 23/48 UM2032 hardware layout and configuration 47 note:1 important, be fore using pin 4 of cn2 as +3.3v input, insure that the sold er bridge sb4 is removed. otherwise the 32f412gdiscovery discovery kit could be damaged by the overcurrent. note:2 the external voltage applied to pin vin should be in the range 6 to 9v at 25c ambient temperature. if a higher voltage is applied, the regulator u3 may overheat and could be damaged. note:3 by default pin 5 and pin 6 of connector cn 1 are connected respectively to the port pc5 (adc1_in15) and bp0 (adc1_in8) of the stm32. they are enabled by the default configuration of the solder bridges: sb8 and sb6 closed, sb7 and sb5 opened. in case it is necessary to have an i2c interface instead of adc inputs on pins 5 and 6 of cn1, open sb8 and sb6, and close sb7 and sb5. note:4 important, be fore using pin 4 of cn2 as +5 v input, insure the jumpers and solder bridges are configured according to 5 v dc power input defined in section 6.3.1: power supply sources . otherwise the 32f412gdiscovery discovery kit could be damaged by the overcurrent. cn2 power 4+3v3 - +3.3 v input/output (see note:1 ) tim2_ch1, spi1_nss pa15 d10 3 cn12 digital 5+5 v - +5 v input/output (see note:4 ) tim4_ch3 pb8 d9 2 6 gnd - ground - pg10 d8 1 7 gnd - ground - - - - 8vin - +6v to +9v power input (see note:2 ) -pg11d78 cn11 digital --- - -tim5_ch1pf3d67 cn1 analog 1 a0 pa1 adc1_in1 tim5_ch4 pf10 d5 6 2 a1 pc1 adc1_in11 - pg12 d4 5 3 a2 pc3 adc1_in13 tim5_ch2 pf4 d3 4 4 a3 pc4 adc1_in14 - pg13 d2 3 5a4 pc5 or pb9 (see note:3 ) adc1_in15 or i2c2_sda (see note:3 ) usart6_tx pg14 d1 2 6a5 pb0 or pb10 (see note:3 ) adc1_in8 or i2c2_scl (see note:3 ) usart6_rx pg9 d0 1 table 5. arduino uno v3 compatible connectors (continued) left connectors right connectors cn no. pin no. pin name stm32 pin function function stm32 pin pin name pin no. cn no.
hardware layout and configuration UM2032 24/48 docid029078 rev 2 6.16 extension conn ectors p1 and p2 the extension connectors consist in male pin he aders p1 and p2 (not soldered by default). they provide access to the following ips of the stm32f412zgt6: ? spi ? i 2 c with smba and fm+ (1 mhz speed) ? full usart (rx, tx, rts, cts) ? can ? adc inputs ? timers channels ? i 2 s full duplex with sd and extsd alternate functions. ? dfsdm input for stereo pdm digital microphones most of the ports connected to the extension connectors p1 and p2 are the same for the 32f401cdiscovery and 32f411ediscovery discovery kits, to maximize the compatibility with the previous designs. in table 6 , table 7 and in the 32f412gdiscovery schematics (see section appendix a: schematics ), the pin numbers corresponding to these ports, are annotated with the star symbol: ?*?. in table 6 , table 7 and in the 32f412gdiscovery schematics (see section appendix a: schematics ) the pins belonging to the extension connectors p1 and p2 annotated with a letter, are shared with a peripheral of the 32f412gdiscovery (for example, s means that the port pc9 corresponding to pin 46 is also used for microsd, see table 7 ). table 6. pin assignment for the extension connector p1 p1 odd pins p1 even pins pin no. name note pin no. name note 1gnd* 2gnd* 3 vdd_mcu * 4 vdd_mcu * 5 gnd * 6 nrst * 7 pc1 *a 8 pc0 * 9pc3*a10pc2*d 11 pa1 *a 12 - - 13 pa3 *v 14 pa2 *v 15 pa5 *a 16 pa4 *c 17 pa7 *a 18 pa6 *a 19 pc5 *a 20 pc4 *a 21 pb1 *d 22 pb0 *a 23 gnd * 24 pf2 - 25 pf3 a 26 - - 27 pf10 a 28 pf11 - 29 - - 30 pf13 - 31 pg2 c 32 - -
docid029078 rev 2 25/48 UM2032 hardware layout and configuration 47 33 pg9 a 34 pb10 *a 35 pb11 *d 36pb12*c 37 pb13 * 38 pb14 * 39 pb15 * 40 - - 41 - - 42 - - 43 - - 44 pd12 * 45 pd13 * 46 - - 47 - - 48 - - 49 gnd * 50 gnd * table 7. pin assignment for the extension connector p2 p2 odd pins p2 even pins pin no. name note pin no. name note 1gnd* 2gnd* 3+5v* 4+5v* 5+3v3* 6+3v3* 7ph0* 8ph1* 9 pc14 * 10 pc15 * 11 pe6 * 12 pc13 * 13 pe4 * 14 pe5 * 15 pe2 * 16 pe3 * 17 pe0 * 18 pe1 * 19 pb8 *a 20 pb9 *a 21 boot0 * 22 vdd_mcu * 23 pb6 *tc 24 pb7 *tc 25 pb4 *c 26 pb5 *c 27 - - 28 pb3 * 29 - - 30 pd6 * 31 pg10 a 32 pg11 a 33 pg12 a 34 pg13 a 35 pg14 a 36 spkoutrn - 37 - - 38 spkoutrp - 39 pa14 * 40 pa15 *a table 6. pin assignment for the extension connector p1 (continued) p1 odd pins p1 even pins pin no. name note pin no. name note
hardware layout and configuration UM2032 26/48 docid029078 rev 2 note:1 the star symbol ?*? means pin compatible with 32f401cdiscovery and 32f411ediscovery discovery kits. note:2 meaning of the letters: ?a?: shared with arduino uno v3 connectors, c: shared with codec, d: shared with digital microphones, v: shared with virtual com port, t: shared with capacitive touch panel, s: shared with microsd. 6.17 lcd display, backlight and touch panel 6.17.1 lcd display the display is a 1.54-inch, 240x240 pixels tft color lcd with capacitive touch panel. it displays up to 262 k colors. the lcd parallel interface is connected to the fmc of the stm32f412zgt6 by the connector cn15 (see table 8 ). to enable the data bus of the lcd display in 16-bit mode, the solder bridges sb41 and sb42 are opened and closed respectively by defau lt. in this way the im signal of the lcd is set to high.to use the lcd in 8-bit mode, sb41 must be closed and sb42 opened. the selection of the lcd is performed by fmc_ne1 (pd7), write- enable signal is fmc_nwe (pd5) and read-enable is fmc_noe (pd4). the address bit a0 of the fmc (flexible static memory controller) is used to select data/command access to the lcd. the port pg4 should be used as an input of the microcontroller connected to the lcd signal te (tearing effect). to avoid visible artifacts on the display, te signal is used to synchronize the refresh of the lcd memory done by the microcontroller with the lcd scan. the port pd11 of the stm32f41 2zgt6 controls the reset of the lcd display lcd_reset. 41 pa10 * 42 pa13 * 43 pa8 *d 44 - - 45 - - 46 pc9 *s 47 pc6 * 48 pc7 *c 49 gnd * 50 gnd * table 7. pin assignment for the extension connector p2 (continued) p2 odd pins p2 even pins pin no. name note pin no. name note table 8. pin assignment for connector cn15 cn15 pin signal name description stm32 pin involved 1 gnd ground gnd 2 lcd_te tearing effect output pin to send an interrupt to stm32 pg4 3 d15 data connected to fmc pd10 4 d14 data connected to fmc pd9 5 d13 data connected to fmc pd8
docid029078 rev 2 27/48 UM2032 hardware layout and configuration 47 6.17.2 lcd signal access (cn7) cn7 is the footprint of a dual-row, through-hole, 26-pin header with 2.54 mm pitch. the header cn7 gives an easy access to the fmc signals of the lcd (see table 9 ). 6 d12 data connected to fmc pe15 7 d11 data connected to fmc pe14 8 d10 data connected to fmc pe13 9 d9 data connected to fmc pe12 10 d8 data connected to fmc pe11 11 d7 data connected to fmc pe10 12 d6 data connected to fmc pe9 13 d5 data connected to fmc pe8 14 d4 data connected to fmc pe7 15 d3 data connected to fmc pd1 16 d2 data connected to fmc pd0 17 d1 data connected to fmc pd15 18 d0 data connected to fmc pd14 19 /rd read of lcd connected to fmc_noe pd4 20 /wr write of lcd connected to fmc_nwe pd5 21 rs data/command select connected to a0 pf0 22 /cs chip select of lcd connected to fmc_ne1 pd7 23 reset lcd reset pd11 24 im 8-bit (low)/16-bit (high) mode selection pin n/a 25 iovcc lcd i/os power supply connected to vdd n/a 26 vci power supply connected to +3.3v n/a 27 gnd ground gnd 28 leda anode of backlight led n/a 29 ledk cathode of backlight led n/a table 8. pin assignment for connector cn15 (continued) cn15 pin signal name description stm32 pin involved table 9. pin assignment for connector cn7 cn7 odd pins signal name cn7 even pins signal name 1 a0 2 lcd_blctrl 3fmc_nwe 4 gnd 5 fmc_ne1 6 fmc_noe 7d0 8 d1
hardware layout and configuration UM2032 28/48 docid029078 rev 2 6.17.3 backlight ledk and leda signals of the lcd module are the cathode and the anode respectively of the backlight leds. the backlight requires a current source of typi cally 15 ma capable to deliver a voltage up to 10 v. this function is handled by the ba cklight-driver circuit stld40dpur that is a switching-mode-boost converter, supplied by the +5 v rail of the discovery kit. the high level on the signal lcd_blctrl (pf5) lights the backlight on. it is possible to dim the backlight intensity by applying a low-frequency pwm signal to lcd_blctrl (1 to 10 khz). 6.17.4 touch panel the touch panel is a capacitive touch panel using an i 2 c interface. the 10-pin connector cn14 of the touch panel is located at the bottom side of the discovery kit (see figure 5: 32f412gdiscovery bottom layout ). the i 2 c sda line is connected to pb7 and the i 2 c scl line is connected to pb6. an interrupt outp ut ctp_int is connected to port pg5 to be used as an interruption input of the microcontro ller. port pf12 is the reset of the capacitive touch panel. 6.18 joystick and leds the blue button b2 is a 4-direction joystick with a selection mode when pressed in the center. the logic state is high when one of the five-position switches (left, right, up, down, selection) is pressed. the center positi on is connected to a wake-up pin of the microcontroller pa0. this offers the possibilit y to wake-up the microcontroller by pressing the center of the joystick. four leds located near the arduino uno v3 connectors cn1 and cn2 are available for the user (refer to the figure 4: 32f412gdiscovery top layout ). from left to right the user finds ld1, ld2, ld3 and ld4 with their colors green, orange, red and blue respectively. to light a led a low-logic state 0 must be written in the corresponding gpio. table 10 gives the assignment of control ports to the led indicators. 9 d2 10 +3.3v 11 d3 12 vdd 13 lcd_te 14 lcd_reset 15 d4 16 d5 17 d6 18 d7 19 d8 20 d9 21 d10 22 d11 23 d12 24 d13 25 d14 26 d15 table 9. pin assignment for connector cn7 (continued) cn7 odd pins signal name cn7 even pins signal name
docid029078 rev 2 29/48 UM2032 hardware layout and configuration 47 table 10. port assignment to the led indicators led controlled by stm32 port color ld1 pe0 green ld2 pe1 orange ld3 pe2 red ld4 pe3 blue
connectors UM2032 30/48 docid029078 rev 2 7 connectors 7.1 i 2 c extension connector cn10 figure 9. i 2 c extension connector cn10 (front view) 7.2 usb otg fs micro-ab connector cn3 figure 10. usb otg fs micro-ab connector cn3 (front view) table 11. i 2 c extension connector pinout cn10 pin number description pin number description 1 i2c1_sda (pb9) 5 vdd 2nc6nc 3 i2c1_scl (pb10) 7 gnd 4 ext_reset (pf11) 8 nc 069   table 12. usb otg fs micro-ab connector cn3 pin number description pin number description 1 vbus (pa9) 4 id (pa10) 2 dm (pa11) 5 gnd 3 dp (pa12) - -
docid029078 rev 2 31/48 UM2032 connectors 47 7.3 microsd connector cn13 figure 11. microsd connector cn13 (front view) 7.4 st-link/v2-1 usb micro-b connector cn6 figure 12. usb micro-b connector cn6 (front view) table 13. microsd connector cn13 pin number description pin number description 1 sdio_d2 (pc10) 6 gnd 2 sdio_d3 (pc11) 7 sdio_d0 (pc8) 3 sdio_cmd (pd2) 8 sdio_d1 (pc9) 4+3.3v 9gnd 5 sdio_clk (pc12) 10 microsdcard_detect (pd3)
connectors UM2032 32/48 docid029078 rev 2 table 14. usb micro-b connector cn6 pin number description pin number description 1 vbus (power) 4 gnd 2 dm 5,6 shield 3dp- -
docid029078 rev 2 33/48 UM2032 schematics 47 appendix a schematics this section provides the design schematic s for the 32f412gdiscovery discovery kit, to help users to implement these f eatures in application designs. this section includes: ? overall schematics for the 32f412gdiscovery, see figure 13 ? stm32 connections, see figure 14 ? power supply, see figure 15 ? lcd, camera and connector, see figure 16 ? quad-spi, see figure 17 ? audio amplifier, see figure 18 ? peripherals, see figure 19 ? usb otg fs, see figure 20 ? extension connectors, see figure 21 ? arduino uno v3 connector, see figure 22 ? st-link/v2-1, see figure 23
schematics UM2032 34/48 docid029078 rev 2 figure 13. 32f412gdiscovery discovery kit 111 mb1209-top mb1209 d-02 6/29/2016 title: size: reference: date: sheet: of a3 revision: stm32f412g-disco project: usd_d0 usd_d1 usd_d2 usd_d3 usd_clk usd_cmd d[0..15] a0 nrst qspi _bk1_io3 fmc_noe fmc_nwe led3 led4 qspi _bk1_io2 qspi _bk1_io0 qspi _bk1_io1 usd_detect usb_otgfs_vbus usb_otgfs_id usb_otgfs_dm dfsdm_datin0 qspi_clk dfsdm_ckout fmc_ne1 lcd_reset led1 led2 joy_right joy_left joy_up joy_down qspi _bk1_ncs usb_otgfs_ovrcr usb_otgfs_ppwr_en swo swdio swclk usart2_tx usart2_rx ext_reset ph0 ph1 stlk_mco joy_sel codec_int lcd_te lcd_blctrl pc0 pc2 pd12 pc1 pc3 pd13 pe6 pe4 pe2 pe0 pe1 pe5 pe3 pd6 pa4 pa6 pa2 pa1 pa7 pa5 pa3 pa14 pa10 pa8 pa13 pa15 pb10 pb12 pb14 pb11 pb13 pb15 pb8 pb6 pb4 pb7 pb5 pb3 pb9 pc4 pc5 pc14 pc6 pc15 pc7 pb1 pb0 pf2 pf3 pf10 pf11 pf13 pg2 pg9 pg10 pg11 pg12 pg13 pg14 i2c2_sda i2c2_scl usb_otgfs_dp pc13 boot0 dfsdm_datin3 i2c1_scl i2c1_sda codec_i2s3_ws codec_i2s3_sck codec_i2s3_sd codec_i2s3_mck codec_i2s3ext_sd ctp_int ard_d3 ctp_rst ard_d5 ard_d4 ard_a0 ard_d2 ard_d1 ard_d0 ard_d8 ard_d7 ard_a1 ard_a2 ard_a3 ard_a4 ard_d12 ard_d13 ard_d11 ard_d10 ard_a5 ard_d15 ard_d14 ard_d9 ard_d6 pc9 u_mcu2 mcu2.schdoc pc0 pc2 pa4 pa6 pc4 pb0 pb10 pb12 pb14 pd12 pc1 pc3 pa1 pa7 pc5 pb1 pa5 pb11 pb13 pb15 pd13 ph1 pc15 pc13 pe1 pb7 pb5 pb3 pe5 pe3 pb9 pd6 pa13 pa15 pc7 ph0 pc14 pe6 pe4 pe2 pe0 pb8 pb6 pa14 pa10 pa8 pb4 pc6 pa2 pa3 pf2 pf3 pf10 pf11 pf13 pg2 pg9 pg10 pg11 pg12 pg13 pg14 spkoutrn spkoutrp boot0 nrst pc9 u_extension_connectors extension_connectors.schdoc codec_int dfsdm_datin0 dfsdm_ckout spkoutrn spkoutrp dfsdm_datin3 codec_i2s3_sck codec_i2s3_ws codec_i2s3_sd i2c1_scl codec_i2s3_mck i2c1_sda codec_i2s3ext_sd u_audio audio.schdoc nrst ard_a0 ard_a1 ard_a2 ard_a3 ard_a4 ard_a5 ard_d5 ard_d4 ard_d3 ard_d2 ard_d1 ard_d0 ard_d13 ard_d12 ard_d11 ard_d10 ard_d9 ard_d8 ard_d6 ard_d7 ard_d15 ard_d14 u_arduino_ connectors arduino_ connectors.schdoc lcd_reset a0 fmc_nwe fmc_noe fmc_ne1 lcd_te lcd_blctrl lcd_d[0..15] i2c1_sda i2c1_scl ctp_int ctp_rst u_lcd lcd.schdoc usd_clk usd_cmd usd_d0 usd_d1 usd_d2 usd_d3 usd_detect ext_reset led1 led2 led3 led4 nrst i2c2_sda i2c2_scl joy_sel joy_down joy_left joy_right joy_up u_peripherals peripherals.schdoc qspi_bk1_io0 qspi_bk1_io2 qspi_bk1_io1 qspi_bk1_io3 qspi _clk qspi _bk1_ncs u_qspi qspi.schdoc usb_otgfs_vbus usb_otgfs_dm usb_otgfs_dp usb_otgfs_id usb_otgfs_ovrcr usb_otgfs_ppwr_en u_usb_otg_fs usb_otg_fs.schdoc u_power power.schdoc stlk_mco nrst swclk swdio swo usart2_tx usart2_rx u_st_link_v2-1_2 st_link_v2-1_2.schdoc i fmc matched net lengths [tolerance = 200mil] impedance constraint [min = 40.00 max = 60.00 ] i fmc i fmc i fmc i fmc i fmc i qspi matched net lengths [tolerance = 100mil] i qspi i qspi i qspi i qspi i qspi n ote: text in italic placed on a wire is not the net name. it just helps to identify rapidly mcu io related to this wire. rev d-01 modifications: silkscreen: - update revision of board to d top side and bottom side. - name of pin32 of connector p1 is nc - bottom side update the lcd reference: lcd ref: frd154bp2902-ctp schematic: - r69-2 connected to vdd - updated ctp connector cn14: pin8 is now iovcc - added sb44, sb45, c87 connected to cn14 pin8 - remove zz2 because lcd and ctp are now same part - updated reference of lcd zz1: frd154bp 2902-ctp ( now lcd+ctp) - added comment: ctp working with vdd_mcu from 1.8 to 3.6v - added r105 100k to insure ctp int is low at power-on. - removed r11 - pin26 of u6 stlink, corrected name of power +3v3_st_link - sb32 set: open by default rev d-02 modifications: - connected cn7 pin2 to pf5 - added two pull-up resistors to reset of ctp one to vdd, second one to +3v3. not populated.
UM2032 schematics docid029078 rev 2 35/48 figure 14. 32f412gdiscovery mcu 211 mcu mb1209 d-02 6/29/2016 title: size: reference: date: sheet: of a3 revision: stm32f412g-disco project: pa4 pa5 pa6 pa7 pa10 pa0 pa1 pa15 pa3 pa13 pa14 pa2 pa8 pb5 pb7 pb14 pb15 pb10 pb8 pb9 pb1 pb2 pb3 pb0 pb4 pb11 pb12 pb13 pc0 pc2 pc3 pc4 pc5 pc6 pc7 pc8 pc9 pc10 pc11 pc12 pc13 i2c1_scl i2c1_sda usd_d0 usd_d1 usd_d2 usd_d3 usd_clk c23 1.5pf c30 1.5pf r54 0 r56 0 c21 8.2pf c19 8.2pf r46 [n/a] ph0-osc_in ph1-osc_out pd0 pd1 pd2 pd3 pd4 pd5 pd6 pd7 pd8 pd9 pd10 pd12 pd13 pd14 pd15 d2 d3 d13 d14 d15 d0 d1 usd_cmd pe0 pe14 pe15 pe9 pe8 pe11 pe10 pe12 pe13 pe1 pe3 pe4 pe5 pe7 pf0 pf14 pf15 pf9 pf8 pf11 pf10 pf12 pf13 pf2 pf3 pf4 pf5 pf6 pf7 d4 d5 d6 d7 d8 d9 d10 d11 d12 a0 d[0..15] a0 d[0..15] a0 nrst nrst boot0 vdd_mcu vdda vref+ l1 bead vdd_mcu c8 2.2uf c31 2.2uf ceramic capacitor (low esr) c58 100nf c76 100nf c59 100nf c15 1uf c17 100nf c10 1uf c11 100nf vdd_mcu c60 100nf c20 100nf c75 100nf c74 100nf c73 100nf vdd_mcu c57 100nf c68 100nf c71 100nf vdd_mcu c9 4.7uf vdd pa0 - wkup1 pa6 pa7 pa8- mco1 pc1 pc2 pc3 pc4 pc5 pc8 r68 510 x3 ndk nx3215sa-32.768khz-exs00a-mu00525 vdd_usb33 pe2 pe6 arduino usart6_tx arduino usart6_rx r69 [n/a] qspi _bk1_io3 fmc_noe fmc_nwe led3 ard_d5 ard_d4 ard_a0 ard_d2 ard_d1 ard_d0 ard_d8 ard_d7 ard_a1 ard_a2 ard_a3 ard_a4 codec_i2s3_ws r66 1k2 r67 1k2 vdd pa1 pa2 pa4 pc9 pc10 pc11 pc12 sb31 closed by default vdd led4 pc13 pc13-anti_tamp 7 pc0 26 pc1 27 pc2 28 pc3 29 pa0-wkup 34 pa1 35 pa2 36 pa3 37 pa4 40 pa5 41 pa6 42 pa7 43 pc4 44 pc5 45 pb0 46 pb1 47 pb2 48 pb10 69 pb11 70 pb12 73 pb13 74 pb14 75 pb15 76 pc6 96 pc7 97 pc8 98 pc9 99 pa8 100 pa9 101 pa10 102 pa11 103 pa12 104 pa13 105 pa14 109 pa15 110 pc10 111 pc11 112 pc12 113 pb3 133 pb4 134 pb5 135 pb6 136 pb7 137 pb8 139 pb9 140 pc14-osc32_in 8 pc15-osc32_out 9 ph0-osc_in 23 ph1-osc_out 24 nrst 25 boot0 138 pdr_on 143 u7a stm32f412zgt6u qspi _bk1_io2 qspi _bk1_io0 qspi _bk1_io1 ard_d12 ard_d13 pa5 ard_d11 usd_detect usb_otgfs_vbus pa9 usb_otgfs_id pa11 pa12 usb_otgfs_dm usb_otgfs_dp ard_d10 ard_a5 dfsdm_datin0 qspi_clk codec_i2s3_sck codec_i2s3_sd pb6 ard_d15 ard_d14 pa9 pa10 pa11 pa12 pa15 pb0 vbat 6 vssa 31 vref+ 32 vss_2_0 107 vcap2_0 106 vdd_4 39 vdd_3 144 vss_11 130 vdd_2_usb33 95 vcap1_0 71 vss_10 120 vdd_5 17 vdda 33 vdd_1_0 72 vdd_2_0 108 vdd_12 30 vdd_11 131 vdd_10 121 vss_4 38 vdd_6 52 vdd_7 62 vdd_8 84 vss_5 16 vss_6 51 vss_7 61 vss_8 83 vss_9 94 u7c stm32f412zgt6u pc0 / wkup2 dfsdm_ckout codec_i2s3_mck fmc_ne1 lcd_reset led1 led2 joy_right joy_left pe2 1 pe3 2 pe4 3 pe5 4 pe6 5 pf0 10 pf1 11 pe7 58 pe8 59 pe9 60 pe10 63 pe11 64 pe12 65 pe13 66 pe14 67 pe15 68 pf2 12 pf3 13 pf4 14 pf5 15 pf6 18 pf7 19 pf8 20 pf9 21 pf10 22 pf11 49 pf12 50 pf13 53 pf14 54 pf15 55 pe0 141 pe1 142 pd8 77 pd9 78 pd10 79 pd11 80 pd12 81 pd13 82 pd14 85 pd15 86 pd0 114 pd1 115 pd2 116 pd3 117 pd4 118 pd5 119 pd6 122 pd7 123 pg0 56 pg1 57 pg2 87 pg3 88 pg4 89 pg5 90 pg6 91 pg7 92 pg8 93 pg9 124 pg10 125 pg11 126 pg12 127 pg13 128 pg14 129 pg15 132 u7b stm32f412zgt6u joy_up joy_down pg0 pg1 pg2 qspi _bk1_ncs usb_otgfs_ovrcr usb_otgfs_ppwr_en i2c2_scl i2c2_sda swo swdio swclk pa13 pa14 usart2_tx pa3 usart2_rx ard_d9 ext_reset 2_ckin 2_ckin r45 [n/a] sb22 open by default ph0 ph1 stlk_mco c26 1uf c22 100nf one 100nf placed close to each vdd_x pin of mcu joy_sel pc7 codec_i2s3ext_sd codec_int pd11 boot0 lcd_te pg3 lcd_blctrl ctp_int pc2 pd12 pc1 pc3 pd13 pe6 pe4 pe2 pe0 pe1 pe5 pe3 pd6 pb10 pb12 pb14 pb11 pb13 pb15 pb8 pb6 pb4 pb7 pb5 pb3 pb9 pb5 pb7 pb14 pb15 pb10 pb8 pb9 pb3 pb4 pb11 pb12 pb13 pb6 pc4 pc5 pc14 pc6 pc15 pc7 sb25 open by default sb23 open by default close to mcu close to mcu pe0 pe1 pe3 pe5 pe2 pe6 pb1 pb1 pb0 pb0 pf2 pf3 pf10 pg2 pg10 pg11 pg12 pg13 pg14 pf11 pg9 pf2 pf3 pf10 pf11 pg2 pg9 pg10 pg11 pg12 pg13 pg14 pg4 pg10 pg11 pg12 pg13 pg14 pg9 pg6 pg7 pg8 pg15 pg5 pf1 1 2 x2 nx3225gd-8.00m r71 100k pdr on by default i2c2_sda i2c2_scl 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 cn7 [n/a] d0 d1 d2 d3 d4 d5 d6 d7 d9 d10 d11 d12 d8 d13 d14 d15 lcd_te lcd_reset a0 fmc_nwe fmc_noe fmc_ne1 gnd +3v3 vdd lcd_te lcd_reset fmc_nwe fmc_noe fmc_ne1 lcd signals access (2.54mm pitch) pc14 pc15 ard_d6 sb26 closed by default dfsdm_datin3 vdd_mcu r91 56 pc1 sb34 closed by default sb35 open by default sb27 open by default vdd_mcu sb20 closed by default not fitted not fitted not fitted sb29 open by default pf13 pf13 pc0 ard_d3 ctp_rst r31 1k2 r70 1k2 pa10 pa14 pa13 pa15 pa8 pa6 pa4 pa7 pa5 pa3 pa5 pa7 pa10 pa8 pa3 pa4 pa13 pa14 pa15 pa6 pa1 pa1 pa2 pa2 sb16 closed by default sb15 open by default pc9 sb43 open by default vdd pf5 lcd_blctrl
schematics UM2032 36/48 docid029078 rev 2 figure 15. 32f412gdiscovery power 311 power mb1209 d-02 6/29/2016 title: size: reference: date: sheet: of a4 revision: stm32f412g-disco project: e5v +5v 1 2 pwr ld6 green c3 10uf c2 100nf +5v +3v3 e5v u5v_st_link vin 3 vout 2 1 tab 4 u16 ld1117str c55 10uf +2v +3v3 vdd_mcu r9 820 vin c7 10uf(25v) c4 10uf vin 3 vout 2 1 tab 4 u3 ld1117s50tr arduino power pin u5v 1 2 3 4 5 6 jp3 header 3x2 c6 10uf gnd jp2 sb4 closed by default open solder bridge if discovery is supplied from +3v3 of extension connector 3 2 1 jp5 vdd_usb33 3 2 1 jp6 +3v3 vin 3 vout 2 1 tab 4 u2 ld1117s33tr jumper to measure idd of the mcu 1 2 jp7 vdd vdd= supply of peripherals vdd_mcu= supply of mcu pins vdd only gnd jp8 gnd jp9 gnd jp1 vdd_mcu idd vdd_usb voltage selection vdd_usb source selection r92 68 r90 120 c84 10uf vout = vref (1 + r92 / r90) vout = +2v +/- 50mv using r90=120ohms and r92=68ohms and 5% tol
UM2032 schematics docid029078 rev 2 37/48 figure 16. 32f412gdiscovery lcd 411 lcd mb1209 d-02 6/29/2016 title: size: reference: date: sheet: of a3 revision: stm32f412g-disco project: pd5 pd4 pd7 vled- 41 avdd 37 vddreg 34 gvss 40 pvdd 38 p68 5 im1 27 im0 28 gnd 44 dcx 29 d0 21 gnd 22 wrx 30 vcs 4 vled+ 43 rdx 31 csx 32 d14 7 vddio 33 d13 8 d1 20 d15 6 d6 15 d7 14 d8 13 d9 12 d10 11 d11 10 d12 9 vcc 35 vref 36 mtp 39 nc 42 d2 19 d3 18 d4 17 d5 16 gnd 23 vsync 24 te 25 resetb 26 tcom 2 gnd 1 gvdd 3 cn8 molex 503304-4440 pf0 vdd +3v3 lcd_blctrl lcd_te lcd_reset a0 fmc_nwe fmc_noe fmc_ne1 c72 100nf c70 100nf d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 im1 im0 p68 r57 0 im1 r55 0 im0 r84 0 p68 vdd z1 stps1l40m c77 4.7uf/50v l5 4.7uh(1a) r43 10 blgnd r47 100k c81 4.7uf/10v blgnd blgnd blgnd vi 1 rset 2 gnd 3 fb 4 nc 5 vo 6 en 7 sw 8 pgnd 9 u17 stld40dpur c78 10nf c85 100nf l3 bead c79 10nf vl back light driver & pfc connector for lcd panel blgnd +5v c82 10uf l4 bead c83 100nf l6 bead d8 d7 d6 d5 d4 d3 d2 d1 d0 lcd_reset leda ledk fmc_ne1 a0 fmc_nwe fmc_noe vdd +3v3 common mode supply filter leda ledk backlight control: on/off or dimmer by low frequency (1 to 10khz typ.) pwm using tim5_ch3 pf5 leda ledk current regulated at 15ma l2 bead layout: parts close to stld40d and grouped in same area with blgnd as local ground plane reserved use r52 [n/a] blgnd l7 bead r50 100k +3v3 +3v3 c80 100nf i2c1_scl i2c1_scl_ctp i2c1_sda i2c1_sda_ctp i2c max clock: 400khz sb36 open by default sb39 open by default vdd i2c1_scl i2c1_scl_ctp i2c1_sda i2c1_sda_ctp 2 1 3 g s d tr1 bsn20bk 2 1 3 g s d tr2 bsn20bk i2c level shifter option lower voltage side higher voltage side (mcu ) (ctp) sb38 closed by default sb17 closed by default sb37 open by default sb40 open by default pb7 pb6 i2c1_sda i2c1_scl ctp_int ctp_rst pg5 pf12 r98 100k pull-down to insure ctp is in reset at power-on gnd 1 fmark 2 db15 3 db14 4 db13 5 db12 6 db11 7 db10 8 db9 9 db8 10 db7 11 db6 12 db5 13 db4 14 db3 15 db2 16 db1 17 db0 18 /rd 19 /wr 20 rs 21 /cs 22 reset 23 im 24 iovcc 25 vci 26 gnd 27 leda 28 ledk 29 cn15 fh26-29s-0.3shw d9 d10 d11 d12 d13 d14 d15 top side: layout of cn15 1 29 frd154bp2902-ctp fpc cn15 zz1 frd154bp2902-ctp lcd_d[0..15] d[0..15] lcd_te pg4 lcd_te lcd_reset pd11 r41 100k vdd fmc_ne1 pd7 r99 100k vdd fmc_nwe pd5 fmc_noe pd4 a0 pf0 pd14 pd15 pd0 pd1 pe7 pe8 pe9 pe10 pe11 pe12 pe13 pe14 pe15 pd8 pd9 pd10 pg4 pd11 240x240 pixels tft lcd with capaticitve touch panel pixel (0,0) * x y *: standard orientation. rotations by 90, 180, 270 degrees possible by registers. l8 bead +3v3 not fitted r87 [n/a] r65 [n/a] +3v3 vdd sb41 open by default sb41 open and sb42 closed = im high: lcd in 16bits mode sb41 closed and sb42 opened = imlow : lcd in 8bits mode sb42 closed by default lcd operation: mcu operating voltage range 1.65 to 3.6v not fitted not fitted (tr1, tr2, r65, r87 parts are not soldered) sb45 open by default sb44 closed by default vdd gnd 10 vdd 9 iovcc 8 reset 7 gnd 6 gnd 1 int 2 gnd 3 sda 4 scl 5 cn14 df37nb-10ds-0.4v (5x) c87 100nf capacitive touch panel connector of frd154bp 2902-ctp ctp operation: mcu operating voltage range 1.8 to 3.6v pull-down to insure ctp is in reset at power-on r105 100k lcd+touch frida r106 [n/a] r107 [n/a] +3v3 vdd
schematics UM2032 38/48 docid029078 rev 2 figure 17. 32f412 gdiscovery quad-spi 511 qspi mb1209 d-02 6/29/2016 title: size: reference: date: sheet: of a4 revision: stm32f412g-disco project: qspi_bk1_io0 qspi_bk1_io2 qspi_bk1_io1 pf9 pf7 pf6 pb2 pg6 pf8 qspi_bk1_io3 vdd qspi_clk qspi_bk1_ncs r72 10k dq3/hold# 7 vcc 8 s# 1 dq1 2 c 6 dq0 5 vss 4 dq2/vpp/w# 3 d q3 / hold# vcc s # dq 1 c dq0 vss d q2 / vpp /w # u12 micron n25q128a13ef840f qspi_bk1_io0 qspi_bk1_io1 qspi_bk1_io2 qspi_bk1_io3 qspi_bk1_ncs qspi_clk exposed central pad should not be connected to any voltage on pcb vdd c37 100nf qspi_clk tp3 qspi_bk1_io0 tp2 qspi_bk1_io1 tp1 r100 [n/a] r104 [n/a] vdd r100 and r104:pull-up and pull-down to set pb2 in boot1 alternate function
UM2032 schematics docid029078 rev 2 39/48 figure 18. 32f412gdiscovery audio 711 audio mb1209 d-02 6/29/2016 title: size: reference: date: sheet: of a3 revision: stm32f412g-disco project: codec_i2s3_sck adcdat1 f2 adclrclk1/gpio1 g3 agnd d6 cpvdd g9 cpvoutn h7 cpvoutp g7 cs/addr g2 dacdat1 e4 cpgnd h9 dcvdd f1 dbvdd d2 dgnd e2 cpcb h8 avdd1 d9 bclk1 g1 cifmode a4 cpca g8 dmicclk c6 agnd e7 agnd e8 avdd2 d8 gpio2/mclk2 e1 gpio3/bclk2 h2 gpio4/lrclk2 f4 gpio5/dacdat2 h3 gpio6/adclrclk2 g4 gpio7/adcdat2 e5 gpio8/dacdat3 h4 gpio9/adcdat3 f5 gpio10/l rclk3 h5 gpio11/bclk3 f6 hp2gnd f7 hpout1fb g5 hpout1l h6 hpout1r g6 hpout2n f9 hpout2p f8 in1ln d7 in1lp c8 in1rn b7 in1rp c7 in2ln/dmicdat1 b9 in2lp/vrxn b8 in2rn/dmicdat2 a9 in2rp/vrxp a8 ldo1ena d4 ldo1vdd e9 ldo2ena d5 ldo2vdd d1 lineout1n c5 lineout1p b5 lineout2n c4 lineout2p b4 lineoutfb a6 lrclk1 e3 mclk1 d3 micbias1 a7 micbias2 b6 refgnd a5 sclk h1 sda f3 spkgnd1 a1 spkgnd2 c1 spkmode a3 spkoutln b1 spkoutlp a2 spkoutrn c3 spkoutrp b3 spkvdd1 b2 spkvdd2 c2 vmidc c9 vrefc e6 u15 wm8994ecs/r c43 100nf c44 100nf vdd +1v8 vdd codec_i2s3_ws codec_i2s3_sd codec_int i2c1_scl pb7 pb6 codec_i2s3_mck pc7 c52 100nf c53 100nf r79 20 r80 20 c47 2.2uf c46 2.2uf c51 2.2uf gnd 5 dout 4 clk 3 vdd 1 lr 2 u4 mp34dt01tr gnd 5 dout 4 clk 3 vdd 1 lr 2 u5 mp34dt01tr vdd c13 100nf pb1 +3v3 c64 100nf +1v8 +3v3 +1v8 c63 100nf c12 100nf r97 [n/a] vdd r82 10k r38 10k c45 1uf c66 1uf c65 1uf c54 4.7uf c42 4.7uf c41 4.7uf c40 4.7uf c48 4.7uf pc2 i2c1_sda dfsdm_datin0 dfsdm_ckout r94 0 r88 0 r93 0 r95 0 r86 0 operating range: 1.62 schematics UM2032 40/48 docid029078 rev 2 figure 19. 32f412gdiscovery peripherals 611 peripherals mb1209 d-02 6/29/2016 title: size: reference: date: sheet: of a4 revision: stm32f412g-disco project: micro sd usd_clk usd_cmd sms064ff or sms128ff 1 2 3 4 5 6 7 8 sw2 9 sw1 10 cn13 pjs008-2000 usd_d0 usd_d1 usd_d2 usd_d3 usd_detect r64 0 pc8 pc9 pc10 pc11 pc12 pd2 (tf) card r119 47k r115 47k r113 47k r118 47k r117 47k reset button 1 2 3 4 5 6 7 8 cn10 f206a-2*04mgf-a pb9 pb10 ext_reset pf11 ssm-104-l-dh (samtec) i2c extension connector 1 2 ld3 red 1 2 ld2 orange 1 2 ld4 blue 1 2 ld1 green +3v3 r5 510 r4 680 r3 680 r2 680 leds led1 led2 led3 led4 1 4 3 2 b1 td-0341 [reset/black] c1 100nf r8 100k nrst pe0 sb1 closed by default pe1 pe2 pe3 the 4 leds are top side pd3 i2c2_sda i2c2_scl r24 [n/a] r28 [n/a] r22 [n/a] r26 [n/a] r30 [n/a] vdd r23 100 joy_sel joy_down joy_left joy_right joy_up joystick pf14 pf15 pg0 pg1 vdd vdd vdd vdd pa0 - wkup1 right side left side common 5 selection 2 down 3 left 1 right 4 up 6 b2 mt008-a
UM2032 schematics docid029078 rev 2 41/48 figure 20. 32f412gdi scovery usb otg fs 811 usb_otg_fs mb1209 d-02 6/29/2016 title: size: reference: date: sheet: of a3 revision: stm32f412g-disco project: +5v +3v3 r13 0 vbus 1 dm 2 dp 3 id 4 gnd 5 shield 6 usb_micro-ab receptacle shield 7 shield 8 shield 9 exp 10 cn3 475900001 pa9 pa10 pa11 pa12 r76 0 r75 0 dz a2 id a3 pd1 b1 pup b2 vbus b3 d+in c1 pd2 c2 d+out c3 d-in d1 gnd d2 d-out d3 d1 emif02-usb03f2 1 2 ld7 green pg8 r17 47k usb_otgfs_vbus vbus ok u5v usb_otgfs_dm usb_otgfs_dp usb_otgfs_id usb_otgfs_ovrcr pg7 usb_otgfs_ppwr_en microab_n microab_p r21 0 1 2 ld8 red r18 620 c5 4.7uf r14 47k r12 330 +3v3 transistor pins numbers follow sot23 jedec standard, usb full speed operating range voltage: 3.0v schematics UM2032 42/48 docid029078 rev 2 figure 21. 32f412gdiscovery extension connectors 911 extension connectors mb1209 d-02 6/29/2016 title: size: reference: date: sheet: of a4 revision: stm32f412g-disco project: nrst vdd_mcu 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 p1 header 25x2 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 p2 header 25x2 pe5 pe6 pa1 pa5 pa6 pa7 pa8 pa15 pb1 pb8 pb9 pb10 pb13 pb14 pb15 pb0 pc1 pc3 pc4 pc5 pc14 pc15 pc0 pd6 pd12 pd13 ph1 ph0 vdd_mcu vdd_mcu +3v3 +3v3 pb11 mco_1 pe2 pe3 pe4 pc13 pa4 pb12 pc6 pc7 pa10 pa13 pa14 pb3 pb5 pb7 pb4 pb6 pe0 pe1 spi4_miso/spi5_miso/tim9_ch1 spi4_mosi/i2s4_sd/spi5_mosi/i2s5_sd/tim9_ch2 i2c2_smba tim5_ch1 spi_2_mosi/i2s2_sd/i2c_4_scl/tim_1_ch3n/tim8_ch3n/tim12_ch2/rtc_50hz i2c4_smba/usart3_rx/adc1_15 tim5_ch4 spi2_mosi/i2s2_sd/adc1_13 adc1_11/wkup3 spi4_mosi/i2s4_sd/usart2_rts/adc1_1/tim2_ch2/tim5_ch2 adc1_10/wkup2 usart3_rts/tim4_ch1/i2c4_scl dfsdm_clocking/i2s2_ckin/i2c2_sda spi2_sck/i2s2_ck/i2s3_mck/i2c2_scl/i 2c4_scl/usart 3_tx/tim2_ch3 spi_2_miso//i2s2ext_sd/i2c_4_sda/usart_3_rts/tim_1_ch2n_8_ch2n_12_ch1 spi2_sck/i2s2_ck/spi 4_sck/i2s4_ck/usart3_cts/can2_tx/tim1_ch1n spi5_nss/i2s5_ws/adc1_9/tim1_ch3n/tim3_ch4tim/8_ch3n/dfsdm_datin0 i2c4_sda/tim4_ch2 spi5_mosi/i2s5_sd/i2c1_scl/i 2c3_sda/can1_rx/tim4_ch3/tim10_ch1 spi3_mosi/3_sd/usart2_rx spi1_nss/1_ws/usart1_tx/tim2_ch1/2_etr i2s2_mck/i2c4_scl/usart6_tx/tim3_ch1/tim8_ch1 i2s1_mck/adc1_14 spi2_nss/i2s2_ws/i2c1_sda/i 2c2_sda/can1_tx/tim4_ch4/tim11_ch1 boot0 spi1_mosi/i2s1_sd/adc1_7/tim1_ch1n/tim3_ch2/tim8_ch1n/tim14_ch1 spi1_miso//adc1_6/tim3_ch1/tim13_ch1 spi1_nss/i2s1_ws/spi3_nss/i2s3_ws/adc1_4 spi1_sck/i2s1_ck/adc1_5/tim2_ch1/2_etr/tim8_ch1n spi5_sck/i2s5_ck/adc1_8/ti m1_ch2n/tim3_ch3/tim8_ch2n tamp1 usart6_rx can2_rx usart6_rts/can2_tx usart6_cts usart6_tx alternate functions available: spi1, spi2, spi4 i2c1, i2c2 with smba , i2c4 fm+ 1mhz with smba usart3 rx,tx,cts,rts, usart6 rx,tx,cts,rts can1, can2 14 adc inputs >15 timer channels i2s2 full duplex with sd and extsd dfsdm input for stereo pdm microphones * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * (right side) (left side) shared with led3 shared with led4 shared with lse crystal shared with lse crystal shared with hse crystal a a a a c a a a a a a d pc2 * d spi2_miso/i2sext_sd/dfsdm-ckout/adc1_12 shared with ext_reset a dc c c d shared with usb_otgfs_id jtms-swdio jtck-swclk a a a aa aa a jtdo-swo cc cc aa shared with led1 shared with led2 nrst pc0 pc2 pa4 pa6 pc4 pb0 pb10 pb12 pb14 pd12 pc1 pc3 pa1 pa7 pc5 pb1 pa5 pb11 pb13 pb15 pd13 ph1 pc15 pc13 pe1 pb7 pb5 pb3 pe5 pe3 pb9 pd6 pa13 pa15 pc7 ph0 pc14 pe6 pe4 pe2 pe0 pb8 boot0 pb6 pa14 pa10 pa8 pb4 pc6 pa2 pa3 * * i2s2_ckin/usart2_tx/adc1_2/tim2_ch3/tim5_ch3/tim9_ch1 i2s2_mck/usart2_rx/adc1_3/tim2_ch4/tim5_ch4/tim9_ch2 spi2_nss/i2s2_ws/spi3_sck/i2s3_ck/spi4_nss/i2s4_ws/i2c2_smba/usart2_rx pa2 pa3 * : pin compatible with stm32f401-disco and stm32f411-disco a : shared with arduino connectors c : shared with codec d : shared with digital microphones pf2 pf3 pf10 pf11 pg2 pg9 pg10 pg11 pg12 pg13 pg14 spkoutrn spkoutrp pf2 pf3 pf10 pf11 pg2 pg9 pg10 pg11 pg12 pg13 pg14 spkoutrn spkoutrp +5v +5v not fitted not fitted pf13 pf13 i2c4_smba v : shared with virtual com port v v t : shared with capacitive touch panel i2c1_scl shared with codec and ctp i2c1_sda shared with codec and ctp tt pc9 mco_2/i2s2_ckin/i2c3_sda /tim3_ch4 /tim8_ch4 * s s : shared with microsd
UM2032 schematics docid029078 rev 2 43/48 figure 22. 32f412gdiscovery arduino uno v3 connector 10 11 arduino uno connector mb1209 d-02 6/29/2016 title: size: reference: date: sheet: of a4 revision: stm32f412g-disco project: arduino uno connector +3v3 +5v a0 a1 a2 a3 a4 a5 rx/d0 tx/d1 d2 d4 pwm/d3 pwm/d5 pwm/d6 d7 d8 pwm/d9 pwm/cs/d10 sda/d14 scl/d15 pb10 pb9 nrst vin nrst sck/d13 miso/d12 pwm/mosi/d11 1 2 ld9 green r73 510 avdd gnd vref+ c38 [n/a] r74 0 ard_a0 ard_a1 ard_a2 ard_a3 ard_a4 ard_a5 ard_d5 ard_d4 ard_d3 ard_d2 ard_d1 ard_d0 ard_d13 ard_d12 ard_d11 ard_d10 ard_d9 ard_d8 ard_d6 ard_d7 ard_d15 ard_d14 pa1 pc1 pc3 pc4 pc5 pb0 pg9 pg14 pg13 pg12 pf10 pf3 pg11 pg10 pb8 pa15 pa7 pa6 pa5 adc1_in8 adc1_in15 adc1_in14 adc1_in13 adc1_in11 adc1_in1 i2c2_sda pb9 pb10 i2c2_scl usart6_rx usart6_tx tim5_ch2 tim5_ch4 tim4_ch3 tim2_ch1, spi1_nss tim3_ch2, spi1_mosi spi1_miso spi1_sck sb5 open by default sb6 closed by default sb8 closed by default sb7 open by default sb30 closed by default ioref nrst 3v3 5v gnd gnd vin power ain i2c2_scl i2c2_sda 1 2 3 4 5 6 7 8 9 10 cn12 header 10x1_female 1 2 3 4 5 6 7 8 cn2 header 8x1_female 1 2 3 4 5 6 cn1 header 6x1_female 1 2 3 4 5 6 7 8 cn11 header 8x1_female tim5_ch1 pf4
schematics UM2032 44/48 docid029078 rev 2 figure 23. 32f412gdiscovery st-link/v2-1 11 11 st-link/v2-1 mb1209 d-02 6/29/2016 title: size: reference: date: sheet: of a4 revision: stm32f412g-disco project: stm_rst t_jtck t_jtck t_jtdo t_jtdi t_jtms osc_in osc_out t_nrst ain_1 usb st-link com board ident: pc13=0 t_swdio_in led_stlink mco stlink_rx stlink_tx t_swo r85 1k5 r40 0 r39 0 r37 [n/a] r44 100k r36 10k r103 4k7 r102 4k7 c14 10pf c16 10pf c18 100nf usb_renumn usb_renumn +3v3_st_link +3v3_st_link +3v3_st_link pwr_ext d4 bat60jfilm c24 1uf c86 10nf c34 1uf 5 1 2 gnd 3 4 bypass inh vin vout u9 ld3985m33r c25 100nf c35 100nf +3v3_st_link r42 10k r81 36k r83 100 +3v3_st_link e5v r48 100k d6 bat60jfilm power switch to supply +5v from stlink usb pwr_enn c56 100nf c61 100nf c62 100nf c67 100nf +3v3_st_link 3 1 2 t2 9013-sot23 vusb_st _link vusb_st_link vusb_st _link vdd led_stlink r1 100 r7 100 r6 0 +3v3_st_link stm_jtms stm_jtck d5 bat60jfilm t_jrst stl_usb_dm stl_usb_dp stl_usb_dm stl_usb_dp r32 100k r34 2k7 r33 4k7 +5v cur_sel in 1 in 2 on 3 gnd 4 set 5 out 6 out 7 fault 8 u8 st890cdr vusb_st _link u5v_st _link r51 10k r62 2k7 c32 100nf d3 bat60jfilm +3v3_st_link vbat 1 pc13 2 pc14 3 pc15 4 osc_in 5 osc_out 6 /rst 7 vssa 8 vdda 9 pa0 10 pa1 11 u2_tx 12 u2_rx 13 u2_ck 14 s1_ck 15 s1_miso 16 s1_mosi 17 pb0 18 pb1 19 pb2/boot1 20 pb10 21 vss_1 23 vdd_1 24 pb12 25 pb11 22 s2_ck 26 s2_miso 27 s2_mosi 28 pa8 29 pa9 30 pa10 31 pa11 32 pa12 33 jtms 34 vss_2 35 vdd_2 36 jtck 37 jtdi 38 jtdo 39 jnrst 40 pb5 41 pb6 42 pb7 43 boot0 44 pb8 45 pb9 46 vss_3 47 vdd_3 48 u6 stlink u5v output current limitation : 500ma sb19 open by default r89 100k r101 [n/a] +3v3_st_link usb virtual comport not fitted stlk_mco c69 [n/a] mco sb18 open by default jumpers on --> discovery selected jumpers off and solder bridge on t_swo removed --> st-link selected t_jtck t_jtms swd to mcu 1 2 3 4 cn5 sb14 sb13 sb11 sb12 sb10 sb9 sb2 closed by default sb3 open by default stm_jtms stm_jtck swd reserved default r25 22 r19 22 tck/swclk tms/swdio r27 10k 1 2 3 4 5 6 cn4 header 6 ain_1 t_nrst t_swo nrst r15 22 r11 [n/a] sb21 closed by default sb28 closed by default t_nrst swo_mcu d2 bat60jfilm r29 [n/a] swclk pa14 swdio pa13 swo pb3 r35 [n/a] red _green 2 1 3 4 ld5 hsmf-a201- a00j1 t_jtdo t_jtms c29 100nf c36 100nf vcca 1 a1 2 a2 3 gnd 4 dir 5 b2 6 b1 7 vccb 8 u11 sn74lvc2t45dcut vdd t_swo +3v3_st_link swo_mcu sb24 closed by default vcca 1 a1 2 a2 3 gnd 4 dir 5 b2 6 b1 7 vccb 8 u10 sn74lvc2t45dcut vdd vdd c28 100nf c27 100nf r59 100k r58 100k +3v3_st_link r61 0 1 2 jp4 [n/a] +3v3_st_link r49 0 usart2_tx usart2_rx pa2 pa3 1 2 x1 nx3225gd-8.00m transistor pins numbers follow sot23 jedec standard, r53 56 1 2 fault ld10 red r60 820 vbus 1 dm 2 dp 3 id 4 gnd 5 shield 6 usb_micro-b receptacle shield 7 shield 8 shield 9 exp 10 exp 11 cn6 1050170001 stlink power supply text to use the discovery as programmer of an external stm32: - insure the stm32 to programm on an external board is supplied with 3.3v only! - remove the two jumpers on cn5 to left pins 1, 2, 3, 4 open - connect following pins of cn4 to the stm32 to programm: pin2 to swclk, pin3 to gnd, pin4 to swdio, pin5 to reset. +3v3_st_link
docid029078 rev 2 45/48 UM2032 federal communications commission (fcc) and industry canada (ic) compliance 47 appendix b federal communications commission (fcc) and industry canada (ic) compliance statements b.1 fcc compliance statement b.1.1 part 15.19 this device complies with part 15 of the fcc rules. operation is su bject to the following two conditions: (1) this device may not cause ha rmful interferen ce, and (2) this device must accept any interference received, including interference that may cause undesired operation. b.1.2 part 15.105 this equipment has been tested and found to comply with the limits for a class a digital device, pursuant to part 15 of the fcc rules. these limits are designed to provide reasonable protection against harmful interfer ence when the equipment is operated in a commercial environment. this equipment gener ates, uses, and can radiate radio frequency energy and, if not installed and used in accordance with the instruction manual, may cause harmful interference to radio communications. operation of this equipment in a residential area is likely to cause harmful interference in which case the user will be required to correct the interference at his own expense. b.1.3 part 15.21 any changes or modifications to this equipment not expressly approved by stmicroelectronics may cause harmful interferen ce and void the user's authority to operate this equipment. b.2 ic compliance statement b.2.1 compliance statement industry canada ices-003 complianc e label: can ices-3 (a)/nmb-3(a) b.2.2 dclaration de conformit tiquette de conformit la nmb-003 d' industrie canada : can ices-3 (a)/nmb-3(a)
cispr32 UM2032 46/48 docid029078 rev 2 appendix c cispr32 c.1 warning warning: this device is compliant with class a of cispr 32. in a residential environment, this equipment may cause radio interference.
docid029078 rev 2 47/48 UM2032 revision history 47 revision history table 15. document revision history date revision changes 28-jul-2016 1 initial version. 08-nov-2016 2 added sections: section appendix b: federal communications commission (fcc) and industry canada (ic) compliance statements , section appendix c: cispr32 .
UM2032 48/48 docid029078 rev 2 important notice ? please read carefully stmicroelectronics nv and its subsidiaries (?st?) reserve the right to make changes, corrections, enhancements, modifications, and improvements to st products and/or to this document at any time without notice. purchasers should obtain the latest relevant in formation on st products before placing orders. st products are sold pursuant to st?s terms and conditions of sale in place at the time of o rder acknowledgement. purchasers are solely responsible for the choice, selection, and use of st products and st assumes no liability for application assistance or the design of purchasers? products. no license, express or implied, to any intellectual property right is granted by st herein. resale of st products with provisions different from the information set forth herein shall void any warranty granted by st for such product. st and the st logo are trademarks of st. all other product or service names are the property of their respective owners. information in this document supersedes and replaces information previously supplied in any prior versions of this document. ? 2016 stmicroelectronics ? all rights reserved


▲Up To Search▲   

 
Price & Availability of UM2032

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X